Post not yet marked as solved
Click to stop watching this thread.
You have stopped watching this post. Click to start watching again.
contentPostList.repliesup-voted.tooltip
Hello!In addition to using correct DB (which is shared) you'll need to create new record with correct zone id.For example, when I am adding new record to shared DB related to some parent record, I generate CKRecord.ID for it using zone id from previously fetched record by getting it's zone id:func newIdentifier(withZoneFrom record: CKRecord? = nil) -> CKRecord.ID {
if let record = record {
return CKRecord.ID(recordName: UUID().uuidString, zoneID: record.recordID.zoneID)
}
}And it works fine for me. If you'll provide code example how you create new record I will be able to give you more advice.